package org.clweb.dialog;

import java.util.List;
import java.util.Map;

/**
 *
 * @author dakhoa
 * @version 1.0
 */
public interface IDialogEventHandler {

    /**
     *
     * @param dialogData map of data pass in dialog
     * @param errs error msg during open dilalog
     * @return true to open dialog return false to display information msg and don't
     * open dialog
     */
    public boolean handleDialogOpen(
        Map<String, Object> dialogData, List<String> errs);

    /**
     * @param dialogData
     */
    public void handleDialogClose(Map<String, Object> dialogData);
}
